//
//  constant.h
//  微blog
//
//  Created by Jorn.Wu on 15/8/19.
//  Copyright (c) 2015年 Jorn.Wu(jorn_wza@sina.com). All rights reserved.
//

#ifndef _blog_constant_h
#define _blog_constant_h

/**
 * 系统版本
 */
#define   kVersion   [[UIDevice currentDevice].systemVersion floatValue]

/**
 * SDK 接口参数
 */
#define kAPPKey @"4003033452"
#define kAPPSecret @"bc861287d67d25c336591af4991dc0af"
#define kAPPRedirectURI @"https://api.weibo.com/oauth2/default.html"


/**
 * 请求URL
 */
#define unread_count @"remind/unread_count.json"  //未读消息
#define home_timeline @"statuses/home_timeline.json"  //微博列表
#define comments  @"comments/show.json"   //评论列表

#define BaseUrl @"https://api.weibo.com/2/"     //主url
#define send_update @"statuses/update.json"  //发微博(不带图片)
#define send_upload @"statuses/upload.json"  //发微博(带图片)

#define geo_to_address @"location/geo/geo_to_address.json"  //查询坐标对应的位置
#define nearby_pois @"place/nearby/pois.json" // 附近商圈
#define nearby_timeline  @"place/nearby_timeline.json" //附近动态


//微博字体
#define FontSize_Weibo(isDetail) isDetail?16:15
#define FontSize_ReWeibo(isDetail) isDetail?15:14



/**
 * 屏幕尺寸
 */
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height

/**
 * 默认主题
 */
#define kDefualtThemeName @"Cat"

/**
 * 将主题存储的key
 */
#define kUserDefualtThemeKey @"userDefualtThemeKey"

/**
 * 切换主题通知名
 */
#define kThemeDidChangedNotification @"themeDidChangedNotification"

/**
 * 颜色
 */
#define kColorWithRGBA(r, g, b, a) [UIColor colorWithRed:(r) / 255.f green:(g) / 255.f blue:(b) / 255.f alpha:(a)]
#define kColorWithRGB(r, g, b) [UIColor colorWithRed:(r) / 255.f green:(g) / 255.f blue:(b) / 255.f alpha:1.f]

/**
 * 预编译格式打印
 */
#ifdef DEBUG
#define kSinaWeiboLog(...) NSLog(__VA_ARGS__)
#else
#define kSinaWeiboLog(...) /* 不做任何操作 */
#endif






























#endif
